[IA64] vti fault handler clean up: make VMX_DO_SAVE_MIN aware of fault in xen
authorAlex Williamson <alex.williamson@hp.com>
Fri, 14 Dec 2007 20:33:01 +0000 (13:33 -0700)
committerAlex Williamson <alex.williamson@hp.com>
Fri, 14 Dec 2007 20:33:01 +0000 (13:33 -0700)
commitd95896f9ef18d408d632d519bdfa517c4f96974e
treec7bfd83dc7b0503c07a9814bcee2e0860f9e952b
parent3187f6310b94aa5371a3341af2c709074da57aaf
[IA64] vti fault handler clean up: make VMX_DO_SAVE_MIN aware of fault in xen

Current VMX_DO_SAVE_MIN is simplified from DO_SAVE_MIN assuming
that the faults are in VTi guest. Discard the assumption and make
code more generic.  Make it able to handle faults in both guest and xen.
Set pKStk and pUStk in VMX_DO_SAVE_MIN and use them to get the correct
place to save registers so that don't overwrite guest mode register
in vmx fault handler.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/vmx/vmx_minstate.h